<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>BOM对象</title>

    <script type="text/javascript">
        /* alert("abc");
         window.alert("cba");*/

        //获取弹窗
        var flag = window.confirm("确认要删除嘛？");
        alert(flag);

        //定时器
        //1.setTimeout只出一次
        /*setTimeout(function () {
            alert("fucking");
        },1000);*/
        //2.setInterval循环周期

        setInterval(function () {
            alert("fucking");
        },1000);
        //调用其他BOM对象
        /*window.location;*/
    </script>

</head>
<body>

</body>
</html>